'''
Created on 2024年8月3日

@author: Administrator
'''
class A:
    def f(self):
        print("A::f")
        
class B(A):
    def f(self):
        print("B::f")
        
class C(A):        
    def f(self):    
        print("C::f")
        
class D(B,C):
    pass
#     def f(self):
#         print("D::f")

d = D()
d.f()

def outer():
    x = 10
    def inner():
        nonlocal x
        x += 5
    inner()
    print(x)

outer()


